package com.cyt.base.util;


/**
 *@Author: YuShengQiang
 *@Date: 2018-11-16 17:21
 *@Description: 常量值
 */
public final class BaseConstant {
    //返回结果状态
    public static String CODE_RETURN_SUCCESS = "true";//操作成功
    //常用状态
    public static String CODE_SUCCESS = "success";//操作成功
    public static String CODE_ERROR="error";//操作失败
    public static Integer CODE_AUTOLOGIN_Y=1;//自动登录
    public static Integer CODE_AUTOLOGIN_N=2;//非自动登录
    public static String COOKIE_LOGINNAME="COOKIE_LOGINNAME";//保存到COOKIE中登录名信息
    public static String COOKIE_PASSWORD="COOKIE_PASSWORD";//保存到COOKIE中登录密码信息
    public static String SESSION_USER="SESSION_USER";//保存到Session中信息
    public static String SESSION_APPLY="SESSION_APPLY";//保存到Session中引用id信息
    public static String WECHAT_PAY_FAILL="微信支付失败！";
    public static String DATABASE_ERROR_CANSHU="参数错误!";
    public static String USER_COOKIE_LOGINNAME="USER_COOKIE_LOGINNAME";//保存到COOKIE中登录名信息
    public static String USER_COOKIE_PASSWORD="USER_COOKIE_PASSWORD";//保存到COOKIE中登录密码信息
    public static String USER_SESSION_USERINFO="USER_SESSION_USERINFO";//保存到Session中信息

    public static final String EXCEL_IMPORT_ERROR_MESSSAGE = "表格信息不满足条件";

    public static final String DEFAULT_SYS_ROLE = "default_sys_role";

    /**
     * 微信人员管理默认密码
     */
    public static final String DEFAULT_EDUCATION_USER_PASSWORD = "111";

    public static String DATABASE_SUCCEED_MSG = "保存成功!";

    public static String BASE_DICT_CONTENT_LIST="BASE_DICT_CONTENT_LIST";//缓存中的字典码

    //Oauth状态标识符
    public static final String OAUTH_BASE="1";
    public static final String OAUTH_USERINFO="2";
    //流程工作
    public static String OA_PROCESS_LEAVE="请假申请";



    //删除标记：1、正常，2、删除
    public static String REMOVE_TAG_NO="1";
    public static String REMOVE_TAG_YES="2";

    /** 分页默认参数 */
    public static final int PAGE_NUM = 1;
    public static final int PAGE_SIZE = 15;
    /**
     * 级别
     */
    public static final int GRADE_ONE = 1;
    public static final int GRADE_TWO = 2;

    /**
     * 选项选中1=未选中2=选中
     */
    public static final String SELECT_STATUS_NO = "1";
    public static final String SELECT_STATUS_YES = "2";

    /**
     * 返回结果
     */
    public static String DATABASE_SUCCEED_INSERT = "添加成功!";
    public static String DATABASE_ERROR_INSERT = "添加失败!";
    public static String DATABASE_SUCCEED_UPDATE = "更新成功!";
    public static String DATABASE_ERROR_UPDATE = "更新失败!";
    public static String DATABASE_SUCCEED_DEL = "删除成功!";
    public static String DATABASE_ERROR_DEL = "删除失败!";
    public static String BASE_UPDATE_RULE_ERROR = "存在子类，不能修改类型为规则";
    public static String BASE_DEL_RULE_ERROR = "存在子类，无法删除数据";
    public static String DATABASE_SEND_SUCCESSD="接口发送成功";
    public static String DATABASE_SEND_ERROR="接口发送失败";


    //附件类型:1、图片类型，2、文档类型,3、execl类型
    public static String FILE_TYPE_IMAGE="1";
    public static String FILE_TYPE_DOC="2";
    public static String FILE_TYPE_EXECL="3";
    //菜单最小code值
    public static final String MENU_CODE_MIN="10";

    /**
     * 使用状态:1、未使用，2、已使用
     */
    public static final String BASE_USE_STATUS = "base_use_status";
    public static final String BASE_USE_STATUS_WSY = "1";
    public static final String BASE_USE_STATUS_YSY = "2";

    /**
     * 状态1=已发布2=未发布
     */
    public static String BASE_RELEASE_STATUS_YES = "1";
    public static String BASE_RELEASE_STATUS_NO = "2";

    /**
     * 使用状态
     */
    public static String BASE_STATUS_YES = "1";
    public static String BASE_STATUS_NO = "2";

    /**
     * 是否首页展示1=是2=否
     */
    public static String WEBSITE_INDEX_STATUS_YES = "1";
    public static String WEBSITE_INDEX_STATUS_NO = "2";

    /**
     * 应用状态:1、默认类应用，2、购买类应用
     */
    public static final String APPLY_USE_STATUS_DEFAULT = "1";
    public static final String APPLY_USE_STATUS_BUY = "2";

    /**
     * 是否更新1=不需要更新2=需要更新
     */
    public static final String IMPORT_STATUS_UPDATE_NO = "1";
    public static final String IMPORT_STATUS_UPDATE_YES = "2";

    /**
     * 问卷类型1=扫码问卷2=对象问卷
     */
    public static final String QUESTION_TYPE_QRCODE = "1";
    public static final String QUESTION_TYPE_OBJECT = "2";

    /**
     * 问卷用户类型0=未提交，1=已提交
     */
    public static final String QUESTION_USER_STATUS_NO_SUBMIT = "0";
    public static final String QUESTION_USER_STATUS_YES_SUBMIT = "1";

    /**
     * 问卷对象类型
     * 对象类型(1:所有人,2:教师，3：学生，4：自定义)
     */
    public static final String QUESTION_OBJECT_TYPE_ALL = "1";
    public static final String QUESTION_OBJECT_TYPE_TEACHER = "2";
    public static final String QUESTION_OBJECT_TYPE_STUDENT = "3";
    public static final String QUESTION_OBJECT_TYPE_CUSTOMIZE = "4";

    /**
     * 问卷发布状态
     */
    public static final String QUESTION_STATUS_EDIT = "1";
    public static final String QUESTION_STATUS_NOT_READY = "2";
    public static final String QUESTION_STATUS_PUBLISH = "3";
    public static final String QUESTION_STATUS_FINISH = "4";

    /**
     * 状态(1:单选，2：多选，3：填空)
     */
    public static final String QUESTION_SUBJECT_ONE = "1";
    public static final String QUESTION_SUBJECT_TWO = "2";
    public static final String QUESTION_SUBJECT_THREE = "3";

    /**
     * 报名状态提醒
     */
    public static final String ASSOCITATION_SIGN_SUCCESSD="报名成功";
    public static final String ASSOCITATION_SIGN_LOADING="报名中,请等待报名结果";
    public static final String ASSOCITATION_SIGN_ERROR="报名失败,请联系管理员";
    public static final String ASSOCITATION_SIGN_ERROR_AGAIN = "报名失败,请重新报名";
    public static final String ASSOCITATION_SIGN_MAX="该社团报名人数已满";
    public static final String ASSOCITATION_SIGN_MAXOUT="该社团报名人数已满或已超过本次报名社团数上限";
    public static final String ASSOCITATION_SIGN_PMAX_OUT="已超过本次报名社团数上限";
    public static final String ASSOCITATION_SIGN_QUIT_SUCCESSD="退团成功";
    public static final String ASSOCITATION_SIGN_QUIT_LOADING="退团中,请等待退团结果";
    public static final String ASSOCITATION_SIGN_QUIT_ERROR="退团失败,请联系管理员";


    /**
     * 招生发布状态
     */
    public static final String ENROLLMENTRELEASE_EDIT="1";
    public static final String ENROLLMENTRELEASE_RELEASE="2";
    public static final String ENROLLMENTRELEASE_END="3";
    /**
     * 报名状态code
     */
    public static final String ASSOCITATION_SIGN_STATE_SUCCESSD="1";
    public static final String ASSOCITATION_SIGN_STATE_SUCCESSD_LOADING="2";
    public static final String ASSOCITATION_SIGN_STATE_FAILED="3";

    /**
     * 学校通用用户人员角色:1、管理员,2、教师,3、学生
     */
    public static final String EDUCATION_USER_TYPE_ADMIN = "1";
    public static final String EDUCATION_USER_TYPE_TEACHER = "2";
    public static final String EDUCATION_USER_TYPE_STUDENT = "3";

    /**
     * 招新发布的状态
     */
    public static final String ASSOCIATION_NEW_WILL_PUSHLISH_ = "0";
    public static final String ASSOCIATION_NEW_PUSHLISH_ = "1";
    public static final String ASSOCIATION_NEW_END_ = "2";
    public static final String ASSOCIATION_NEW_EDIT_ = "3";




    public enum SchedulerStatus {
        /**
         * 正常
         */
        NORMAL("0"),
        /**
         * 暂停
         */
        PAUSE("1");

        private String value;

        private SchedulerStatus(String value)
        {
            this.value = value;
        }

        public String getValue()
        {
            return value;
        }
    }
}
